package com.examplemartin.jpademo.pojo.po.sell;

import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import com.examplemartin.jpademo.pojo.po.good.GoodPO;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 销售订单明细实体
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "t_selldetail")
public class SellDetailPO extends BaseEntity implements Serializable {



    // 商品 one
  @ManyToOne
  private GoodPO goodPO;

    // 销售单 one
  @ManyToOne
  private SellPO sellPO;

  // 数量
  private Integer goodcount;

  // 单价
  private Float price;

  @Override
  public String toString() {
    return "SellDetailPO{" +
            "goodPO=" + goodPO +
            ", sellPO=" + sellPO +
            ", goodcount=" + goodcount +
            ", price=" + price +
            '}';
  }
}
